function CommonHome() {
	this.debugActivated = true;

	this.log = function( message ) {
		if( this.debugActivated && message != null ) {
//			console.log( getStringDate() + " | " + message );
			console.log( message );
		}
	}

	function getStringDate() {
		var date = new Date();
		var hours = ( date.getHours() < 10 ) ? "0" + date.getHours() : date.getHours();
		var minutes = ( date.getMinutes() < 10 ) ? "0" + date.getMinutes() : date.getMinutes();
		var seconds = ( date.getSeconds() < 10 ) ? "0" + date.getSeconds() : date.getSeconds();
//		var hours = ( date.getUTCHours() < 10 ) ? "0" + date.getUTCHours() : date.getUTCHours();
//		var minutes = ( date.getUTCMinutes() < 10 ) ? "0" + date.getUTCMinutes() : date.getUTCMinutes();
//		var seconds = ( date.getUTCSeconds() < 10 ) ? "0" + date.getUTCSeconds() : date.getUTCSeconds();
		return hours + ":" + minutes + ":" + seconds;
	}
}

var commonHome = new CommonHome();